package be.bonamis.umpire.domain.quiz;

import java.io.Serializable;

public class PersonQuizId implements Serializable {

	private static final long serialVersionUID = 183238057309448912L;

	private long personId;
	private long quizId;

	public long getPersonId() {
		return personId;
	}

	public void setPersonId(long personId) {
		this.personId = personId;
	}

	public long getQuizId() {
		return quizId;
	}

	public void setQuizId(long quizId) {
		this.quizId = quizId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (personId ^ (personId >>> 32));
		result = prime * result + (int) (quizId ^ (quizId >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PersonQuizId other = (PersonQuizId) obj;
		if (personId != other.personId)
			return false;
		if (quizId != other.quizId)
			return false;
		return true;
	}
}
